package com.milorad.ads.pages.admin;

import org.apache.wicket.markup.html.link.Link;

import com.milorad.ads.pages.BasePage;

/**
 * Main administration panel.
 * 
 * @author Milorad
 */
public class MainAdminPage extends BasePage {
	
	public MainAdminPage() {				
		
		add(new Link<String>("categoriesAdministrationPageLink") {
			private static final long serialVersionUID = -6946455299575055880L;

			@Override
			public void onClick() {
				setResponsePage(CategoriesAdministrationPage.class);			
			}			
		});	
		
		add(new Link<String>("citiesAdministrationPageLink") {
			private static final long serialVersionUID = -6946455299575055880L;

			@Override
			public void onClick() {
				setResponsePage(CitiesAdministrationPage.class);			
			}			
		});	
		
		add(new Link<String>("adsApprovalPageLink") {
			private static final long serialVersionUID = -6946455299575055880L;

			@Override
			public void onClick() {
				setResponsePage(AdvertsApprovalPage.class);			
			}			
		});	
	}
}